﻿<%@ Control Language="C#"  %>

<script runat="server">
    private int Column_id=0;
    private int top_size=100;
    private int Item_Lang = 1;
    protected void Page_Load(object sender, EventArgs e)
    {
        Column_Id = Utils.GetQueryString("cid", 0);
        Item_Lang = Utils.GetLangId();
        Issued issued = new Issued();
        Repeater_List.DataSource = issued.List(Column_Id, Top_Size, Item_Lang);
        Repeater_List.DataBind();
    }
    public int Column_Id
    {
        get { return Column_id; }
        set { Column_id = value; }
    }
    public int Top_Size
    {
        get { return top_size; }
        set { top_size = value; }
    }
</script>

<table class="datas">
<thead>
    <tr>
    <td>No</td>
    <td><%=Lang.Show("Status") %></td>
    <td><%=Lang.Show("Title") %></td>
    <td><%=Lang.Show("UserName") %></td>
    <td><%=Lang.Show("UserId") %></td>
    <td><%=Lang.Show("UserPhone") %></td>
    <td>IP/DNS</td>
    <td class="Narrow"></td>
    <td class="Narrow"></td>
    <td class="Narrow"></td>
    </tr>
</thead>
<tbody>
<asp:Repeater runat="server" ID="Repeater_List">
<ItemTemplate>
    <tr id="TR<%#Eval("Item_Id") %>">
        <td><code><%#Eval("Item_Id")%></code></td>
        <td><img id="Go<%#Eval("Item_Id") %>" src="../static/img/Go<%#Eval("Item_Status") %>.png" /></td>
        <td><%#Eval("Item_Title") %><p><%#Eval("Name") %></p></td>
        <td><%#Eval("Item_User_Name") %></td>
        <td><code><%#Eval("Item_User_Id") %></code></td>
        <td><code><%#Eval("Item_User_Email") %><br /><%#Eval("Item_User_Tel") %></code></td>
        <td><code><%#Eval("Item_User_IP")%><br /><%#Eval("Item_User_IP")%></code></td>
        <td><a href="Issued-Use.aspx?id=<%#Eval("Item_Id") %>&lang=<%=Item_Lang %>"><%=Lang.Show("Use") %></a></td>
        <td><a href="Issued-View.aspx?id=<%#Eval("Item_Id") %>&lang=<%=Item_Lang %>" ><%=Lang.Show("View") %></a></td>
        <td><a href="javascript:Del(<%#Eval("Item_Id") %>,13)" class="del"><%=Lang.Show("Del") %></a></td>
    </tr>
</ItemTemplate>
</asp:Repeater>
</tbody>
</table>